import { config, request } from 'utils';

function getList() {
  return request({ url: config.api.networkList, method: 'GET' });
}

function remove(networkId) {
  return request({ url: config.api.networkRemove, method: 'DELETE', data: networkId });
}

function create(data) {
  return request({ url: config.api.networkCreate, method: 'PUT', data: data });
}

export { getList, remove, create };
